# -*- coding:utf-8 -*-
# @Author:🎈RedBalloon
# @Time:2022/10/2-16:33
# @File:18-requests的使用4.py
import requests
from fake_useragent import UserAgent

# requests的代理ip的使用

url = 'http://httpbin.org/get'
proxies = {
    'http': 'http://183.233.169.226:9091',
    'https': 'https://183.233.169.226:9091'
}
response = requests.get(url, proxies=proxies, timeout=3)
print(response.text)
